﻿using System;
using KingsSharp.Core.Data;


namespace CRM.Admin.Contracts.Dto.Sys
{
    public class OrganizationDto : IAddDto, IEditDto<Guid>
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 组织机构名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 机构编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 上级机构ID号
        /// </summary>
        public Guid? ParentOrganizationId { get; set; }

        /// <summary>
        /// 上级机构名称
        /// </summary>
        public string ParentOrganizationName { get; set; }
    }
}
